package com.qhgrain.app.util;

import java.util.TreeSet;

public class StringUtils {

	public static String getNoRepeatStr(String str){
		String result ="";
		if(!org.apache.commons.lang.StringUtils.isBlank(str)){
			TreeSet<String> ts = new TreeSet<String>();
			String[] strArray = str.split(",");
			for(String s: strArray){
				ts.add(s);
			}
			StringBuffer sb = new StringBuffer();
			for(String s :ts){
				sb.append(s).append(",");
			}
			String strings = sb.toString();
			result = strings.substring(0, strings.length()-1);
		}
		return result;
	}

}
